From ba9b0c6f7d3237e77318bec4c546abaa7c212375 Mon Sep 17 00:00:00 2001 From: Emmanuele Bassi Date: Fri, 11 Jan 2019 15:21:09 +0000 Subject: [PATCH] Use the IEC power symbols for GtkSwitch labels MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Unicode 9.0 introduced glyps for the "on" and "off" power states, in the form of: - U+23FD POWER ON SYMBOL, or ⏽ - U+2B58 HEAVY CIRCLE, or ⭘ With `HEAVY CIRCLE` as "power off symbol" selected to avoid adding yet another circle to the standard. Since we moved GtkSwitch to always show glyphs instead of (translatable) strings, asking the localisation teams to either come up with a suitable short string to replace the English "ON" and "OFF", or to fall back to Unicode glyphs, we should ensure we're using the appropriate symbols to begin with. See also: gtk!503 for the corresponding gtk-3-24 change. --- gtk/gtkswitch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gtk/gtkswitch.c b/gtk/gtkswitch.c index 0426fc1997..abc37ab863 100644 --- a/gtk/gtkswitch.c +++ b/gtk/gtkswitch.c @@ -639,10 +639,10 @@ gtk_switch_init (GtkSwitch *self) gtk_widget_add_controller (GTK_WIDGET (self), GTK_EVENT_CONTROLLER (gesture)); priv->pan_gesture = gesture; - priv->on_label = gtk_label_new ("❙"); + priv->on_label = gtk_label_new ("⏽"); gtk_widget_set_parent (priv->on_label, GTK_WIDGET (self)); - priv->off_label = gtk_label_new ("○"); + priv->off_label = gtk_label_new ("⭘"); gtk_widget_set_parent (priv->off_label, GTK_WIDGET (self)); priv->slider = gtk_gizmo_new ("slider", NULL, NULL, NULL); -- 2.30.2